package com.scs.application.modules.wm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.SimpleDataEntity;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 科室三级库
 * </p>
 */
@Data
@Accessors(chain = true)
@TableName("wm_stock_dept")
public class StockDept extends SimpleDataEntity {
    //科室ID
    private String deptId;

    //物料ID
    private String matrId;

    //单品数量
    private Double skuQty;

    //锁定单品数量
    private Double lockQty;

    //可用单品数量  skuQty - lockQty
    @TableField(exist = false)
    private Double qty;

    //实际可用单品数量 列表计算使用
    @TableField(exist = false)
    private Double qtyReal;

    //商品his编码
    @TableField(exist = false)
    private String hisCode;

    @TableField(exist = false)
    private String feeHisId;

    //商品his名称
    @TableField(exist = false)
    private String hisName;

    //商品hrp编码
    @TableField(exist = false)
    private String matrCode;

    //商品名称
    @TableField(exist = false)
    private String matrName;

    //商品规格
    @TableField(exist = false)
    private String matrSpec;

    //科室名称
    @TableField(exist = false)
    private String deptName;

    //科室his编码
    @TableField(exist = false)
    private String deptHisCode;

    //科室his编码
    @TableField(exist = false)
    private String deptHisId;
}
